package cn.varton.adapter;

import cn.varton.BelongQuery;

public class BelongQueryAdapter extends BelongQuery{
    @Override
    public void queryBelong(String param) {
        if(param.matches("^([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){3}[0-9A-Fa-f]{1,4})$")){
            new Ipv6Belong().queryBelong(param);
        }else {
            super.queryBelong(param);
        }
    }
}
